﻿using System.Text.RegularExpressions;

namespace DynamicChart.Service.FunctionConversion;

public class EmptyConvertStrategy: IConvertStrategy
{
    private readonly ISqlFunctionAdapter _adapter;

    public EmptyConvertStrategy(ISqlFunctionAdapter adapter)
    {
        _adapter = adapter;
    }
    
    public string Convert()
    {
        return _adapter.EmptyConvert(":fieldName");
    }

    public string Convert(string format)
    {
        return Convert();
    }

    public string GenerateWhereClause(string fieldName, string parameterName, string condition = "=")
    {
        throw new NotImplementedException();
    }

    public string GenerateWhereClause(string fieldName, string parameterName, string format, string condition = "=")
    {
        throw new NotImplementedException();
    }
}